//个人中心

import React, { Component } from 'react';
import Bottom from '../components/Bottom';
import {connect} from 'react-redux'

class Aersonage extends Component {
    render() {
        return (
            <div className="aersonage">
                <div className="info">
                    <div className="block" onClick={()=>{this.props.history.push('/collect')}}>
                        <p>{this.props.collectList.length}</p>
                        <p>收藏</p>
                    </div>
                    <div className="block">
                        <p>0</p>
                        <p>积分</p>
                    </div>
                    <div className="block">
                        <p>0</p>
                        <p>优惠券</p>
                    </div>
                </div>
                <div className="info">
                    <div className="block" onClick={()=>{this.props.history.push('/registers')}}>
                        
                        <p>登录</p>
                    </div>
                   
                </div>
                <Bottom></Bottom>
            </div>
        );
    }
}

export default connect((state)=>{
    return{
        collectList:state.collectList
    }
},(dispatch)=>{
    return{

    }
}) (Aersonage);